package com.huawei.app.demo.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.huawei.app.demo.R;

/**
 * 图形图像模块
 *
 * @since 2021-01-20
 */
public class ImageFragment extends CustomFragment {

    private static final String TAG = ImageFragment.class.getSimpleName();
    private Context context;
    private View rootView;

    @Override
    public String getTitle() {
        return "图像";
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        if (this.rootView != null) {
            return rootView;
        }
        this.context = getContext();
        this.rootView = inflater.inflate(R.layout.fragment_image, container, false);
        return rootView;
    }
}
